package io.itit.ecp.admin.server.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.itit.grass.common.server.entity.BaseTenantEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 数据填报-配置
 */
@Data
@ToString
@TableName("ecp_tt_data_filling")
@EqualsAndHashCode(callSuper = true)
public class DataFillingEntity extends BaseTenantEntity {

    /**
     * 活动碳排id
     */
    private String activityCarbonEmissionId;

    /**
     * 数据开始时间
     */
    private LocalDate dataStartTime;

    /**
     * 数据结束时间
     */
    private LocalDate dataEndTime;

    /**
     * 所属项目
     */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String sceneProjectId;

    /**
     * 楼栋ID
     */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String sceneEdificeId;

    /**
     * 楼层ID
     */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String sceneFloorId;

    /**
     * 空间Id
     */
    @TableField(updateStrategy = FieldStrategy.ALWAYS)
    private String sceneRoomId;

    /**
     * 外购碳汇
     */
    private BigDecimal outsourcedCarbonSinks;
}
